using System;
using System.Collections.Generic;
using System.Text;

namespace NETL.Engine
{
	public class ExecutionResult
	{
		private string myMessage;
		private Exception myException;
		private ExecutionStatus myStatus;


		public ExecutionResult(ExecutionStatus status)
		{
			myStatus = status;
		}

		public ExecutionResult(ExecutionStatus status, string message)
		{
			myStatus = status;
			myMessage = message;
		}

		public ExecutionResult(ExecutionStatus status, string message, Exception error)
		{
			myException = error;
			myMessage = message;
			myStatus = status;
		}

		public Exception Exception
		{
			get { return myException; }
		}

		public ExecutionStatus Status
		{
			get { return myStatus; }
		}

		public string Message
		{
			get { return myMessage; }
		}
	}
}
